using System;

namespace RBAC.Read.Api.Application.Dto.ERP.SalesReport
{
    /// <summary>
    /// 发货通知明细表 行数据（用于销售报表-发货通知明细表）
    /// </summary>
    public class DeliveryNoticeDetailRowDto
    {
        /// <summary>
        /// 单据编码
        /// </summary>
        public string? BillCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }   
        /// <summary>
        /// 销售员
        /// </summary>
        public string? SalesmanName { get; set; } 
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime? BillDate { get; set; } 
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode { get; set; } 
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; } 

        /// <summary>
        /// 受订数量（来自销售订单明细 sod.Num）
        /// </summary>
        public decimal? OrderQty { get; set; }

        /// <summary>
        /// 发货数量（此处取发货通知明细 qty，若有出库可替换为实际发货数量）
        /// </summary>
        public decimal? DeliveryQty { get; set; }

        /// <summary>
        /// 未出库数量 = 受订数量 - 发货数量（最小为0）
        /// </summary>
        public decimal? UndeliveredQty { get; set; }
    }
}
